gdk/wayland: Handle disorderly tablet/pad disconnects
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 15 May 2020 16:39:57 +0000 (18:39 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 15 May 2020 21:40:18 +0000 (23:40 +0200)
commit000487c36cfac5438890cf78fb04646eb28071ec
tree301794d97fe2782ec7255cc4a8978d42b1a8e1e1
parent5870f1c90ade6c600b714f819aa5dd5db16e80e4
gdk/wayland: Handle disorderly tablet/pad disconnects

If the tablet gets removed/freed while there are pad events in flight,
we leave a dangling pointer from the pad to the tablet, which may
lead to invalid reads/writes when handling the pad event(s).
gdk/wayland/gdkdevice-wayland.c